home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / develop Issue 27 / develop Issue 27 code / Internet Config Assistant / InternetAssistant / CInternetConfig.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-31  |  1.1 KB  |  60 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        CInternetConfig.cp
  3.  
  4.     Contains:    Layer on top of Internet Config
  5.  
  6.     Written by:    Arno Gourdol
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10. */
  11.  
  12. #pragma once
  13.  
  14. #ifndef __CINTERNETCONFIG__
  15. #define __CINTERNETCONFIG__
  16.  
  17. #include "ICAPI.h"
  18. #include "ICTypes.h"
  19.  
  20. class CInternetConfig
  21. {
  22. public:
  23.     // constructor
  24.     CInternetConfig(OSType creator);
  25.         
  26.     // destructor
  27.     virtual ~CInternetConfig();        
  28.     
  29.     // accessors    
  30.     void ICGetString(ConstStr255Param attributeName, Str255 string);
  31.     void ICGetText(ConstStr255Param attributeName, Str255 string);
  32.     void ICGetScrambledString(ConstStr255Param attributeName, Str255 string);
  33.     
  34.     // mutators
  35.     void ICSetString(ConstStr255Param attributeName, Str255 string);
  36.     void ICSetText(ConstStr255Param attributeName, Str255 string);
  37.     void ICSetScrambledString(ConstStr255Param attributeName, Str255 string);
  38.     
  39.     // others
  40.     inline OSErr ICBegin(ICPerm perm = icReadOnlyPerm);
  41.     inline OSErr ICEnd(void);
  42.  
  43. private:
  44.     ICInstance fInstance;
  45. };
  46.  
  47.  
  48.  
  49. inline OSErr CInternetConfig::ICBegin(ICPerm perm)
  50. {
  51.     return ::ICBegin(fInstance, perm);
  52. }
  53.  
  54. inline OSErr CInternetConfig::ICEnd(void)
  55. {
  56.     return ::ICEnd(fInstance);
  57. }
  58.  
  59. #endif
  60.